//
//  BMHCashOutAuthorizeTableViewCell.m
//  BMHVideoMain
//
//  Created by 陈宪栋 on 2017/7/13.
//  Copyright © 2017年 BAOMIHUA.COM. All rights reserved.
//

#import "BMHCashOutAuthorizeTableViewCell.h"

@implementation BMHCashOutAuthorizeTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.contentView.backgroundColor = XLThemeColor;
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        [self setupView];
    }
    return self;
}

- (void)setupView {
    _titleLabel = [[UILabel alloc] init];
    _titleLabel.font = [UIFont systemFontOfSize:15 weight:UIFontWeightBold];
    _titleLabel.textColor = HEXCOLOR(0x000000);
    _titleLabel.frame = CGRectMake(18, 0, 65, 44);
    _titleLabel.textAlignment = NSTextAlignmentLeft;
    [self.contentView addSubview:_titleLabel];
    
    _textField = [[UITextField alloc] init];
    _textField.textColor = kDarkGrayColor;
    _textField.tintColor = HEXCOLOR(0xffffff);
    _textField.font = [UIFont systemFontOfSize:15];
    _textField.frame = CGRectMake(0, 0, 0, 0);
    _textField.keyboardAppearance = UIKeyboardAppearanceLight;
    _textField.clearButtonMode = UITextFieldViewModeWhileEditing;
    UIButton *codeClean = [_textField valueForKey:@"_clearButton"];
    [codeClean setImage:[UIImage imageNamed:@"me_content_but_n"] forState:UIControlStateNormal];
    [self.contentView addSubview:_textField];
}

- (void)layoutSubviews {
    [super layoutSubviews];
}

@end
